﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Practices.EnterpriseLibrary.Data;
using System.Data;
using System.Text;

public partial class Test2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        string sqlCommand = "Select ID from [EVOL_Module]";
        Database db = DatabaseFactory.CreateDatabase("MRPSqlServer");
        using (IDataReader reader = db.ExecuteReader(CommandType.Text, sqlCommand))
        {

            while (reader.Read())
            {
                MRPUtility.WriteGeneralLog(string.Format("Test only {0}....",reader[0]));
            }
        }
        
    }
}
